package com.lsnu.ehr.domain;

public class Result {
	private int code;		// 状态
	private Object data;	// 数据
	private Pages page;		// 分页信息
	private String msg;		// 提示
	public Result(int code, Object data, String msg) {
		super();
		this.code = code;
		this.data = data;
		this.msg = msg;
	}
	public Result(int code, Object data) {
		super();
		this.code = code;
		this.data = data;
	}
	
	public Result(int code, Object data, Pages page, String msg) {
		super();
		this.code = code;
		this.data = data;
		this.page = page;
		this.msg = msg;
	}
	public Result(int code) {
		super();
		this.code = code;
	}
	public Result() {
		super();
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Pages getPage() {
		return page;
	}
	public void setPage(Pages page) {
		this.page = page;
	}
	@Override
	public String toString() {
		return "Result [code=" + code + ", data=" + data + ", page=" + page + ", msg=" + msg + "]";
	}
	
	
}
